package com.futureCloudMOM.core.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.futureCloudMOM.core.entity.FBaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "Quality_RecordMain", description = "质检记录主表")
@TableName(value = "Quality_RecordMain")
public class QualityRecordMain extends FBaseEntity implements Serializable {


    
    @ApiModelProperty("质检日期")
    @TableField(value = "qualityDate")
    private Date qualityDate;
    
    @NotNull(message="[质检人员]不能为空")
    @ApiModelProperty("质检人员")
    @TableField(value = "qualityOper")
    private Long qualityOper;
    
    @NotNull(message="[派工单Id]不能为空")
    @ApiModelProperty("派工单Id")
    @TableField(value = "dispatchID")
    private Long dispatchID;
    
    @NotBlank(message="[质检单号]不能为空")
    @Size(max= 500,message="编码长度不能超过500")
    @ApiModelProperty("质检单号")
    @Length(max= 500,message="编码长度不能超过500")
    @TableField(value = "billNo")
    private String billNo;
    
    @NotNull(message="[物料ID]不能为空")
    @ApiModelProperty("物料ID")
    @TableField(value = "materialId")
    private Long materialId;
    
    @NotNull(message="[质检类型]不能为空")
    @ApiModelProperty("质检类型")
    @TableField(value = "type")
    private Long type;
    
    @Size(max= 500,message="编码长度不能超过500")
    @ApiModelProperty("质检描述")
    @Length(max= 500,message="编码长度不能超过500")
    @TableField(value = "qDesc")
    private String qDesc;
    
    @Size(max= 500,message="编码长度不能超过500")
    @ApiModelProperty("最终结论")
    @Length(max= 500,message="编码长度不能超过500")
    @TableField(value = "qresult")
    private String qresult;






}

